/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.faces.proteu.navigation;

/**
 *
 * @author eros
 */
public class NavigationBean {

    // selected page content bean.
    private PageContentBean selectedPanel;

    /**
     * Gets the currently selected content panel.
     *
     * @return currently selected content panel.
     */
    public PageContentBean getSelectedPanel() {
        return selectedPanel;
    }

    /**
     * Sets the selected panel to the specified panel.
     *
     * @param selectedPanel a none null page content bean.
     */
    public void setSelectedPanel(PageContentBean selectedPanel) {
        if (selectedPanel != null && selectedPanel.isPageContent()) {
            this.selectedPanel = selectedPanel;
        }
    }

    public void setSelectedPanelShotCut(PageContentBean selectedPanel) {

            this.selectedPanel = selectedPanel;
        
    }

}
